/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2024-12-17 10:08:22
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2024-12-29 06:14:07
 * @FilePath: /backend/shorthand-modules/shorthand-modules-content/src/main/java/com/angus/modules/content/domain/Course.java
 */
package com.angus.modules.content.domain;

import com.angus.common.core.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author liyanan
 * @date 2024/10/21 9:27 AM
 * @description
 */

@Data
@TableName("sys_course")
@EqualsAndHashCode(callSuper=false)
public class Course extends BaseEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程类型
     */
    private String contentType;

    /**
     * 课程编码
     */
    private String courseCode;

    /**
     * 课程价格
     */
    private BigDecimal courseAmount;

    /**
     * 课程状态
     */
    private Integer status;

    /**
     * 课程佣金分成比例：课程价格 * 佣金比例 = 佣金金额
     */
    private BigDecimal commissionRate;

    /**
     * 有效天数： 默认 365天
     */
    private Integer validDays;
}
